package com.world.business.dict.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.world.business.dict.domain.DictData;
import com.world.business.dict.domain.query.DictDataAddRequest;
import com.world.business.dict.domain.vo.DictDataVO;

import java.util.List;

/**
 * <p>
 * 字典数据 服务类
 * </p>
 *
 * @author 邓驴
 * @since 2023-07-27
 */
public interface IDictDataService extends IService<DictData> {

    /**
     * 通过字典类型Id获取字典数据
     *
     * @param id 字典类型Id
     * @return {@link List< DictDataVO>} 字典数据集合
     * @author WangYX
     * @date 2023/07/28 14:10
     */
    List<DictDataVO> getListByDictTypeId(Long id);

    /**
     * 详情
     *
     * @param id 字典数据Id
     * @return {@link DictDataVO}
     * @author WangYX
     * @date 2023/07/28 14:02
     */
    DictDataVO get(Long id);

    /**
     * 删除
     *
     * @param id 字典数据Id
     * @author WangYX
     * @date 2023/07/28 14:05
     */
    void delete(Long id);

    /**
     * 字典数据新增
     *
     * @param request 请求参数
     * @return {@link Long} Id
     * @author WangYX
     * @date 2023/07/28 11:09
     */
    Long add(DictDataAddRequest request);
}
